<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:58:"D:\class\public/../application/index\view\index\index.html";i:1554634762;s:48:"D:\class\application\index\view\common\head.html";i:1554635453;s:48:"D:\class\application\index\view\common\menu.html";i:1554643093;s:48:"D:\class\application\index\view\common\foot.html";i:1554635918;}*/ ?>
<!DOCTYPE HTML>
<html>
<head>
    <title>瑜伽生活</title>
    <link href="/index/css/bootstrap.css" rel='stylesheet' type='text/css' />
    <script src="/index/js/jquery.min.js"></script>
    <link href="/index/css/style.css" rel='stylesheet' type='text/css' />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script type="application/x-javascript">
        addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
    </script>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
</head>
	<body>
	<div class="header">
    <div class="container">
        <div class="logo">
            <a href="<?php echo url('index/index'); ?>"><span>瑜</span>伽生活</a>
        </div>
        <div class="top-nav">
            <span class="menu"> </span>
            <ul>
                <li <?php if(($active == 1)): ?>class="active"<?php endif; ?>><a href="<?php echo url('index/index'); ?>">首页</a></li>
                <li <?php if(($active == 2)): ?>class="active"<?php endif; ?>><a href="<?php echo url('index/about'); ?>">关于我们</a></li>
                <li <?php if(($active == 3)): ?>class="active"<?php endif; ?>><a href="<?php echo url('index/contact'); ?>">评论专区</a></li>
                <?php if(($is_login)): ?>
                <li <?php if(($active == 4)): ?>class="active"<?php endif; ?>><a href="<?php echo url('index/user'); ?>">个人中心</a></li>
                <li>欢迎您，<?php echo $is_login['user_name']; ?></li>
                <li><a href="<?php echo url('login/login_out'); ?>">退出</a></li>
                <?php endif; if((!$is_login)): ?>
                <li><a href="<?php echo url('login/login'); ?>">登陆</a></li>
                <li><a href="<?php echo url('login/register'); ?>">注册</a></li>
                <?php endif; ?>
            </ul>
        </div>
        <div class="clearfix"> </div>
        <script>
            $( "span.menu" ).click(function() {
                $( ".top-nav ul" ).slideToggle( "slow", function() {
                    // Animation complete.
                });
            });
        </script>
        <!--<div class="banner text-center">-->
        <!--<h1>discover the features of <span>M</span>oto theme</h1>-->
        <!--<p></p>-->
        <!--<a class="seemore" href="#">Seemore</a>-->
        <!--</div>-->
    </div>
</div>
		<div class="welcome-note">
			<div class="container">
				<div class="wel-head text-center">
					<h3>什么是 <span>瑜</span>伽</h3>
					<p>瑜伽源于古印度，是古印度六大哲学派别中的一系，探寻“梵我合一”的道理与方法。而现代人所称的瑜伽则主要是一系列的修身养心方法</p>
				</div>
			</div>
		</div>
		<div class="top-grids">
			<div class="container">
				<div class="col-md-4 top-grid">
					<h4 style="text-align: center">迈索尔瑜伽</h4>
					<p>迈索尔瑜伽是一种自我练习的阿斯坦珈瑜伽，没有老师来指定体式。学生根据自己的能力和程度进行练习</p>
				</div>
				<div class="col-md-4 top-grid">
					<h4 style="text-align: center">哈达瑜伽</h4>
					<p>哈达瑜伽的概念越来越多地被用来代表较“传统”的印度瑜伽，以示这些比较强体力的练习风格的区别</p>
				</div>
				<div class="col-md-4 top-grid">
					<h4 style="text-align: center">孕瑜伽</h4>
					<p>怀孕期间，如果想要保持身材，做一些对将要出生的宝宝有益的活动，那孕期瑜伽是非常好的一种方式，可以两者兼顾</p>
				</div>
				<div class="col-md-4 top-grid">
					<h4 style="text-align: center">热瑜伽</h4>
					<p>这个课程的奇妙之处在于课上所做的体式是一样的,对每个不同水平的练习者，都有很具体的层级可以选择</p>
				</div>
				<div class="col-md-4 top-grid">
					<h4 style="text-align: center">流瑜伽</h4>
					<p>就是说老师会配合吸气和呼气指示你如何从一个动作进入下一个动作,因为动作与动作之间顺畅的连接，好像舞蹈一样</p>
				</div>
				<div class="col-md-4 top-grid">
					<h4 style="text-align: center">阴瑜伽</h4>
					<p>阴瑜伽是哈达瑜伽中历史最悠久的练习方式，因为它能够非常好的帮助身体适应长时间冥想，而长时间冥想就是古老印度教传统中王者瑜伽的首要元素</p>
				</div>
				<div class="clearfix"> </div>
			</div>
		</div>
		<div class="mid-grids">
			<div class="container">
				<div class="col-md-12">
					<h2> <span><label>瑜</label>伽课程</span></h2>
					<div class="latest-news-grids" style="width: 100%;height: 100%;">
						<?php foreach($class as $k => $v): ?>
						<div class="latest-news-grid">
							<img src="/index/img/01.jpg" title="name" />
							<h4><a href="#"><?php echo $v['name']; ?>  </a> 	</h4>
							<span>可预定 <?php echo $v['times']; ?>	次</span>
							<p><span><?php echo date("Y-m-d H:i:s",$v['created_ts'] ); ?></span></p>
							<a class="news-btn" data="<?php echo $v['id']; ?>" style="cursor:pointer;">预定</a>
						</div>
						<?php endforeach; ?>
						<div class="clearfix"> </div>
					</div>
				</div>
			</div>
		</div>
		<div class="footer">
    <div class="top-footer">
        <div class="container">
            <div class="top-footer-grids">
                <div class="top-footer-grid">
                    <h3>联系我们</h3>
                    <ul class="address">
                        <li><span class="map-pin"> </span><label>北京市XXX大学</label></li>
                        <li><span class="mob"> </span>(416) 555-5252</li>
                        <li><span class="msg"> </span><a href="mailto:yourname@yoursite.com">hello@moto.com</a></li>
                    </ul>
                </div>
                <div class="top-footer-grid">
                    <h3>最新评论</h3>
                    <ul class="latest-post">
                        <?php if((!empty($comment))): foreach($comment as $k=>$v): ?>
                        <li><a href="<?php echo url('index/about'); ?>"><span class="icon1"> </span> <?php echo $v['comment']; ?> </a> </li>
                        <?php endforeach; else: ?>
                        <li style="color: white">暂无评论</li>
                        <?php endif; ?>
                    </ul>
                </div>
                <!--<div class="top-footer-grid">-->
                    <!--<h3>Latest tweets</h3>-->
                    <!--<div class="tweet-box">-->
                        <!--<div class="tweet-box-icon">-->
                            <!--<span> </span>-->
                        <!--</div>-->
                        <!--<div class="tweet-box-info">-->
                            <!--<p>Confucius: Life is really simple, but we insist on making it complicated. <span><a href="#">#famousquotes</a></span><label><a href="#"> 8 mins ago</a></label></p>-->
                        <!--</div>-->
                        <!--<div class="clear"> </div>-->
                    <!--</div>-->
                    <!--<div class="tweet-box">-->
                        <!--<div class="tweet-box-icon">-->
                            <!--<span> </span>-->
                        <!--</div>-->
                        <!--<div class="tweet-box-info">-->
                            <!--<p>Confucius: Life is really simple, but we insist on making it complicated. <span><a href="#">#famousquotes</a></span><label><a href="#"> 8 mins ago</a></label></p>-->
                        <!--</div>-->
                        <!--<div class="clear"> </div>-->
                    <!--</div>-->
                <!--</div>-->
                <!--<div class="clear"> </div>-->
            </div>
        </div>
    </div>
    <div class="bottom-footer">
        <div class="container">
            <div class="bottom-footer-left">
                <p>&#169; Copyright 2019 Template by <a href="http://www.baidu.com/s?wd=Juliy&usm=1&tn=baidu&f=13&ie=utf-8&nojc=1&rqlang=cn" target="_blank">Juliy</a></p>
            </div>
            <div class="clear"> </div>
        </div>
    </div>
</div>
<script src="/index/common/layui/layui.all.js"></script>
	</body>
</html>
<script>
	$('.news-btn').click(function () {
		var th = $(this);
		var id = th.attr('data');
        $.ajax({
            type: "POST",
            dataType: 'json',
            url: '/index/index/bookClass',
            data:{
                id:id,
            },
            success: function (data) {
                if (data.code == 200) {
					layer.msg(data.msg);
				}else{
                    layer.msg(data.msg);
				}
            }
        });

    });
</script>

